package com.mer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mer.entity.Member;
import com.mer.mapper.OrderMemberMapper;
import com.mer.service.OrderMemberService;
import com.mer.vo.CommonResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: IIPhase-project
 * @description: 订单中用户的service实现类
 * @author: 张庆恒
 * @create: 2021-10-22 20:53
 **/
@Service
public class OrderMemberServiceImpl extends ServiceImpl<OrderMemberMapper, Member> implements OrderMemberService {
    @Resource
    private OrderMemberMapper orderMemberMapper;

    @Override
    public CommonResult queryMemberById(String memberId) {
        Member member = orderMemberMapper.queryAllMemberById(memberId);
        return new CommonResult(2000, "查询成功", member);
    }
}
